from PyQt5.QtWidgets import QApplication, QWidget, QPushButton
from PyQt5.QtCore import *
from PyQt5.QtGui import * 
import sys

app = QApplication(sys.argv)

w = QWidget()

w.setWindowTitle("槽函数")

btn = QPushButton("哈哈")
btn.setParent(w)

w.show()


sys.exit(app.exec())